package com.carlinfo.hospital.service.impl;

import com.carlinfo.hospital.dao.impl.DoctorDaoImpl;
import com.carlinfo.hospital.pojo.Doctor;
import com.carlinfo.hospital.service.DoctorService;
import com.carlinfo.hospital.util.PageInfoUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DoctorServiceImpl implements DoctorService
{
    @Autowired
    private DoctorDaoImpl doctorDao;

    @Override
    public int saveOneDao(Doctor doctor)
    {
        return this.doctorDao.saveOneDao(doctor);
    }

    @Override
    public List<Doctor> selectListDao(PageInfoUtil pageInfoUtil, Map<String, Object> condMap)
    {
        return this.doctorDao.selectListDao(pageInfoUtil, condMap);
    }

    @Override
    public Doctor selectOneDao(Map<String, Object> condMap)
    {
        return this.doctorDao.selectOneDao(condMap);
    }

    @Override
    public int updateOneDao(Doctor doctor)
    {
        return this.doctorDao.updateOneDao(doctor);
    }

    @Override
    public int deleteOneDao(Map<String, Object> condMap)
    {
        return this.doctorDao.deleteOneDao(condMap);
    }
}
